<?php

namespace scaffold\exception;

use think\Exception;

/**
 * 异常报错基类
 * @author edward <edward@localhost.com>
 */
class BaseException extends Exception
{
    /**
     * resuful api 错误码
     * @var integer
     */
    protected $recode = 10099;

    /**
     * 写入日志
     * @var boolean
     */
    protected $writeLog = false;

    /**
     * 获取recode错误码
     * @author edward edward@localhost.com
     * @DateTime 2020-08-18
     * @version  1.0.0.0
     *
     * @return   integer
     */
    public function getRecode()
    {
        return $this->recode;
    }

    /**
     * 日志写入
     * @author edward edward@localhost.com
     * @DateTime 2020-08-18
     * @version  1.0.0.0
     *
     * @return   bool
     */
    public function getWriteLog()
    {
        return $this->writeLog;
    }
}
